<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script src="js/vue-2.6.10.js"></script>

</head>
<body>
<div id="app">
    <h2>
        <!--日期是:{{.getFullYear()}}&#45;&#45;{{new Date(birthday).getMonth()+1}}&#45;&#45;{{new Date(birthday).getDay()}}-->
        {{birth}}
    </h2>
</div>

<script type="text/javascript">
  var app=new Vue({
            el:"#app",
            data:{
                birthday:1429032123201
            },
      computed:{
          birth(){
              var date=new Date(this.birthday);
             return  date.getFullYear()+"/"+(date.getMonth()+1)+"/"+date.getDay();

          }
      }

          })

</script>
</body>
</html>